
%%% Weighting the Evidence: A Rank-Dependent Model of Outdoor Recreation, June 2024
%%% This function evaluates the Prelec weighting function given a value for the gamma parameter and a probability level 

function w=W_prelec(parameter,prob)

w=exp(-(-log(prob))^parameter);

end